package homework2;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Set;

public class QQBiz {
	public static void main(String[] args) {
		String[] strs = { "12345", "67891", "12347809933", "98765432102", "67891", "12347809933" };
		LinkedList<String> list = new LinkedList();
		Set<String> set = new HashSet<String>();
		for (int i = 0; i < strs.length; i++) {
			set.add(strs[i]);
		}
		System.out.println(Arrays.toString(set.toArray()));
		System.out.println("---------------------------------------");

		for (String ok : set) {
			System.out.println(ok);

		}
		Iterator<String> it = list.iterator();

		while (it.hasNext()) {
			String qq = (String) it.next();
			set.add(qq);

		}
		System.out.println("----------------------------------------");
		System.out.println(Arrays.toString(set.toArray()));
	}
}
